import type { ChampionType } from '@/types/basicData'

interface Setting {
  autoAccept?: boolean; // 是否自动接受对局
  autoAcceptDelay?: number; // 自动接受对局的延迟时间
}

interface TypeUserInfo {
  accountId?: number;
  displayName?: string;
  gameName?: string;
  internalName?: string;
  nameChangeFlag?: boolean;
  percentCompleteForNextLevel?: number;
  privacy?: string;
  profileIconId?: number;
  puuid?: string;
  rerollPoints?: RerollPoints;
  summonerId?: number;
  summonerLevel?: number;
  tagLine?: string;
  unnamed?: boolean;
  xpSinceLastLevel?: number;
  xpUntilNextLevel?: number;
  isMy?: boolean;
};

interface RerollPoints {
  currentPoints: number;
  maxRolls: number;
  numberOfRolls: number;
  pointsCostToRoll: number;
  pointsToReroll: number;
};

interface Tools {
  autoSelect: {
    flag: boolean; // 自动选择
    CLASSIC: ChampionType[]; // 经典模式
    ARAM: ChampionType[]; // 大乱斗
  }
  autoBanPick: {
    flag: boolean; // 自动bp
    ban: {
      global: ChampionType[]; // 默认ban
      top: ChampionType[]; // 上单ban
      jungle: ChampionType[]; // 打野ban
      mid: ChampionType[]; // 中路ban
      bot: ChampionType[]; // 下路ban
      support: ChampionType[]; // 辅助ban
    },
    pick: {
      global: ChampionType[]; // 默认ban
      top: ChampionType[]; // 上单ban
      jungle: ChampionType[]; // 打野ban
      mid: ChampionType[]; // 中路ban
      bot: ChampionType[]; // 下路ban
      support: ChampionType[]; // 辅助ban
    }
  }
}

export { Setting, Tools, TypeUserInfo }
